iShell Help
Tribeworks > iShell > Help >
  Boolean and its Functions
   

A boolean stores a simple true or false value.

Set Boolean Functions. These are used with the Set command.
  • And: And returns true only if the input argument is true and you are checking for true. Otherwise and always returns false.
  • Or: Or returns false if the input argument is false and the check value is false. Otherwise or always returns true.
  • Toggle: Toggle switches the value. True becomes false, and false becomes true.
  • Value: Value sets a value to the variable.
  • Xor: Xor will return true if the input argument is different than the value to check, and will return false if the input argument and the value to check are the same.
Get Boolean Functions These are used with the Get command.
  • Value: Value sets a value to the variable.
Comparison Boolean Functions These are used with the If, Else If, or While commands.
  • Different: The two values are not equal.
  • Equal: The two values are the same. Either both true, or both false.